class CreateConnections < ActiveRecord::Migration
  def change
    create_table :connections do |t|
      t.integer :duration
      t.integer :traffic
      t.references :creditcard

      t.timestamps
    end
    add_index :connections, :creditcard_id
  end
end
